# @Author：silence
# @Email：792245022@qq.com
# @Date：2025/3/12 2:53

import requests
import json

url = "https://fanyi.baidu.com/sug"

headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
    "cookie": 'Hm_lvt_64ecd82404c51e03dc91cb9e8c025574=1711453569; H_WISE_SIDS_BFESS=60277_60599_60360_60824; BAIDUID_BFESS=DF507A21E00C2BE480CC75B9A320DF65:SL=0:NR=10:FG=1; ZFY=GwYi44nyxRzFjIpZshGXU3y3fPCL0B5x:BMt7zTBAQsI:C; BDUSS=jlEZXJKejhWbkk0R1lRZ1NRWnJGcVhPbGFLT3FjaTJ1eHBYQkZjNkd6TE91R1ZuSVFBQUFBJCQAAAAAAAAAAAEAAADh8iCcc2t5x7PQpnBwcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM4rPmfOKz5nM; BDUSS_BFESS=jlEZXJKejhWbkk0R1lRZ1NRWnJGcVhPbGFLT3FjaTJ1eHBYQkZjNkd6TE91R1ZuSVFBQUFBJCQAAAAAAAAAAAEAAADh8iCcc2t5x7PQpnBwcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM4rPmfOKz5nM; BIDUPSID=DF507A21E00C2BE480CC75B9A320DF65; PSTM=1734185706; __bid_n=194fb66ffd301443109bb4; H_WISE_SIDS=62257_62325_62346_62328; H_PS_PSSID=60277_61027_61671_62325_62338_62346_62328_62373_62387_62421_62423_62426_62474_62485_62494; ab_sr=1.0.1_NmE3OTMxYzFhZjM0Mjk0NDNjYTMxYWEyZmMzY2JjMzZiZDhmNDNkMmVmY2U1YzIyODI1N2ViYzFlZTgzMjkyMzEyOGIyZjk0YzRmNzQ5NDc2MjE0NTg5ZDJiNmFkYjc1YTY5OTdkZjg1OTdlYjQ0NGM4MmI2NTY0ZjE0ZTg0ZGRjZGIyNjI0Y2VhMWM0NGQ0NTNkOGE2OGQ1YjY1OTc3Nw==; RT="z=1&dm=baidu.com&si=cde5c88c-f985-4a02-8936-40086b7ec1e6&ss=m84vi3gc&sl=1&tt=20c&bcn=https%3A%2F%2Ffclog.baidu.com%2Flog%2Fweirwood%3Ftype%3Dperf&ld=2sc"',
}

data = {
    "kw": "eye"
}

response = requests.post(url=url, headers=headers, data=data)

content = response.text

result = json.loads(content)

print(result)